package kuzmenkov.oip.model;

import java.util.List;
import java.util.Set;

/**
 * Class presents a db tables "module"
 * User: Michael Kuzmenkov
 * Date: 18.03.2009
 * Time: 17:02:35
 */
public class Module {
    /**
     * The primary key
     */
    private Long moduleId;
    private String name;
    private String name_ru;
    private String description;
    private String description_ru;
    /**
     * Path to suitable images
     */
    private String imagePath;
    private Producer producer;
    private MethodClass methodClass;

    /**
     * Class which adapts to a module
     */
    private String adapter;
    /**
     * A width of an applet
     */
    private Integer panelWidth;
    /**
     * A height of an applet
     */
    private Integer panelHeight;

    /**
     * A name of a parent module which consists this module
     */
    private String parentModule;
    private String parentModule_ru;

    private List<Parameter> parameters;
    private Set<Comment> comments;
    private Set<Image> images;


    public String getName_ru() {
        return name_ru;
    }

    public void setName_ru(String name_ru) {
        this.name_ru = name_ru;
    }

    public String getDescription_ru() {
        
        return description_ru;
    }

    public void setDescription_ru(String description_ru) {
        this.description_ru = description_ru;
    }

    public Long getModuleId() {
        return moduleId;
    }

    public String getName() {
        return name;
    }

    public String getDescription() {
        return description;
    }

    public String getImagePath() {
        return imagePath;
    }

    public Producer getProducer() {
        return producer;
    }

    public MethodClass getMethodClass() {
        return methodClass;
    }

    public void setModuleId(Long moduleId) {
        this.moduleId = moduleId;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void setImagePath(String imagePath) {
        this.imagePath = imagePath;
    }

    public void setProducer(Producer producer) {
        this.producer = producer;
    }

    public void setMethodClass(MethodClass methodClass) {
        this.methodClass = methodClass;
    }

    public List<Parameter> getParameters() {
        return parameters;
    }

    public void setParameters(List<Parameter> parameters) {
        this.parameters = parameters;
    }

    public Set<Comment> getComments() {
        return comments;
    }

    public void setComments(Set<Comment> comments) {
        this.comments = comments;
    }

    public Set<Image> getImages() {
        return images;
    }

    public void setImages(Set<Image> images) {
        this.images = images;
    }

    public String getAdapter() {
        return adapter;
    }

    public void setAdapter(String adapter) {
        this.adapter = adapter;
    }

    public Integer getPanelWidth() {
        return panelWidth;
    }

    public void setPanelWidth(Integer panelWidth) {
        this.panelWidth = panelWidth;
    }

    public Integer getPanelHeight() {
        return panelHeight;
    }



    public void setPanelHeight(Integer panelHeight) {
        this.panelHeight = panelHeight;
    }

    public String getParentModule() {
        return parentModule;
    }

    public void setParentModule(String parentModule) {
        this.parentModule = parentModule;
    }

    public String getParentModule_ru() {
        return parentModule_ru;
    }

    public void setParentModule_ru(String parentModule_ru) {
        this.parentModule_ru = parentModule_ru;
    }
}
